package com.lhy.skywalking.demo.service.impl;

import com.lhy.skywalking.demo.entity.User;
import com.lhy.skywalking.demo.service.UserService;
import lombok.extern.slf4j.Slf4j;
import org.apache.dubbo.config.annotation.DubboService;

@Slf4j
@DubboService
public class UserServiceImpl implements UserService {

    @Override
    public User findById(Long id) {
        log.info("[用户服务] 基于id查询用户：{}", id);
        return new User(id, "尐海", 12);
    }
}
